//
//  STravelDetailsViewController.m
//  News
//
//  Created by dlios on 15-5-15.
//  Copyright (c) 2015年 PEAK. All rights reserved.
//

#import "STravelDetailsViewController.h"

@interface STravelDetailsViewController ()<UITableViewDataSource, UITableViewDelegate,UIScrollViewDelegate>

@property(nonatomic, retain)UITableView *tableView;
@property(nonatomic, retain)NSArray *arr;
@property(nonatomic, retain)NSString *strTwo;

@end

@implementation STravelDetailsViewController

- (void)dealloc
{
    [_strOne release];
    [_strTwo release];
    [_tableView release];
    [super dealloc];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//    self.navigationController.navigationBar.translucent = NO;
    
}
-(void)create
{
    self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
    _tableView.delegate = self;
    _tableView.dataSource = self;
    _tableView.rowHeight = 100;
    [self.view addSubview:_tableView];
    [_tableView release];
    
}
-(void)details
{
    NSString *str = [NSString stringWithFormat:@" http://c.m.163.com/nc/article/%@/full.html", _strTwo];
    [SNetWorkHandle getDataWithURL:str completion:^(id result) {
//        NSDictionary *xiangqing = [result objectForKey:_strTwo];

        
    }];
    
    
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section_{
    return _arr.count;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    STravel2TableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:@"abc"];
    if (cell == nil) {
        cell = [[STravel2TableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"abc"];
        
    }
    return cell;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
